Revert "Add the "text-button" style to button created with gtk_button_new_with_{label...
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Aug 2013 18:00:37 +0000 (14:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Aug 2013 18:42:18 +0000 (14:42 -0400)
This reverts commit 8d7bab7d7b902e54f27d7dbe26bca9e21eb45787.

gtk/gtkbutton.c

index bb5bc8c12d5afcaab42ca343b33498170dd5c9be..786f3c9b3fcd6d11394271448da011b4c23b9093 100644 (file)
@@ -1294,14 +1294,7 @@ gtk_button_construct_child (GtkButton *button)
 GtkWidget*
 gtk_button_new_with_label (const gchar *label)
 {
-  GtkStyleContext *context;
-  GtkWidget *button;
-
-  button =  g_object_new (GTK_TYPE_BUTTON, "label", label, NULL);
-  context = gtk_widget_get_style_context (button);
-  gtk_style_context_add_class (context, "text-button");
-
-  return button;
+  return g_object_new (GTK_TYPE_BUTTON, "label", label, NULL);
 }
 
 /**
@@ -1382,14 +1375,7 @@ gtk_button_new_from_stock (const gchar *stock_id)
 GtkWidget*
 gtk_button_new_with_mnemonic (const gchar *label)
 {
-  GtkStyleContext *context;
-  GtkWidget *button;
-
-  button = g_object_new (GTK_TYPE_BUTTON, "label", label, "use-underline", TRUE,  NULL);
-  context = gtk_widget_get_style_context (button);
-  gtk_style_context_add_class (context, "text-button");
-
-  return button;
+  return g_object_new (GTK_TYPE_BUTTON, "label", label, "use-underline", TRUE,  NULL);
 }
 
 /**